package com.pzhu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pzhu.model.help.BaseEntity;
import lombok.Data;

/**
 * 会员表
 * @TableName hs_vip
 */
@TableName(value ="hs_vip")
@Data
public class Vip extends BaseEntity implements Serializable {
    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 会员编号
     */
    @TableField(value = "code")
    private String code;

    /**
     * 余额
     */
    @TableField(value = "price")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal price;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}